<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "tmptable".
 *
 * @property string $stu_id
 * @property string $stu_name
 * @property integer $sex
 * @property string $card_id
 * @property string $used_name
 * @property string $nation
 * @property string $political
 * @property string $nativeplace
 * @property string $religion
 * @property string $height
 * @property string $maritial_status
 * @property string $blood_type
 * @property string $telephone
 * @property string $qq
 * @property string $blank
 * @property string $blank_num
 * @property string $enroll_time
 * @property integer $stu_type
 * @property string $major_name
 * @property string $class_name
 * @property integer $status
 * @property integer $dorm_area
 * @property string $dormitory
 * @property string $dorm_num
 * @property string $leader
 * @property string $address
 * @property string $recipient
 * @property string $postal_code
 * @property string $economic_status
 * @property string $load
 */
class TmptableModel extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'tmptable';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['stu_id', 'stu_name'], 'required'],
            [['sex', 'stu_type', 'status', 'dorm_area'], 'integer'],
            [['stu_id', 'card_id', 'political', 'telephone', 'qq', 'recipient', 'economic_status', 'load'], 'string', 'max' => 20],
            [['stu_name', 'used_name', 'nation', 'blank', 'enroll_time', 'major_name', 'class_name'], 'string', 'max' => 50],
            [['nativeplace', 'address'], 'string', 'max' => 200],
            [['religion', 'leader'], 'string', 'max' => 100],
            [['height', 'blank_num'], 'string', 'max' => 30],
            [['maritial_status', 'blood_type', 'dormitory', 'dorm_num'], 'string', 'max' => 10],
            [['postal_code'], 'string', 'max' => 11],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'stu_id' => '学号',
            'stu_name' => '姓名',
            'sex' => '性别',
            'card_id' => '居民身份证号码',
            'used_name' => '曾用名',
            'nation' => '民族',
            'political' => '政治面貌',
            'nativeplace' => '籍贯',
            'religion' => '宗教',
            'height' => '身高',
            'maritial_status' => '婚姻状况',
            'blood_type' => '血型',
            'telephone' => '联系电话',
            'qq' => 'QQ号',
            'blank' => '银行',
            'blank_num' => '银行卡号',
            'enroll_time' => '入学时间',
            'stu_type' => '学生类别',
            'major_name' => '专业名称',
            'class_name' => '班级名称',
            'status' => '学籍状态',
            'dorm_area' => '宿舍区',
            'dormitory' => '宿舍楼',
            'dorm_num' => '宿舍号',
            'leader' => '宿舍管理学生干部',
            'address' => '精挑细选的转',
            'recipient' => '收件人',
            'postal_code' => '邮政编码',
            'economic_status' => '家庭经济状况',
            'load' => '助学贷款类型',
        ];
    }
}
